package com.asman.vr.dto

import androidx.annotation.Keep

//当为一般不是列表接口 ApiService 返回  BaseRes<XXXXXX>
@Keep
data class BaseRes<R>(
    val code: String, //正常：10000
    val error: String,
    val datetime: String, //服务器时间-时间戳
    val success: Boolean,
    val result: R?
)

//当为列表是ApiService 返回  BaseRes<ListResult<XXXXX>>
@Keep
data class ListResult<L>(
    val list: List<L>?,
    val pageNo: Int,
    val pageSize: Int,
    val hasNext: Boolean,
    val total: Int,
    val ticket: String?//首页列表加载下一页的关键字
)

//result 返回为null的接口
@Keep
data class BaseResNull(
    val code: String, //正常：10000
    val error: String,
    val datetime: String, //服务器时间-时间戳
    val success: Boolean
)